package com.ysy.constant;

public class RedisConstant {

    /**
     * note数据 KEY
     */
    private static final String ROARING_BITMAP_NOTE_LIKE = "roaring:bitmap:note:like:";
    public static String buildRoaringBitmapNoteLikeKey(Long id) {
        return ROARING_BITMAP_NOTE_LIKE + id;
    }

    /**
     * note like 数据 KEY
     */
    private static final String USER_NOTE_LIKE_Z_SET = "user:note:likes:";
    public static String buildUserNoteLikeKey(Long userId) {
        return USER_NOTE_LIKE_Z_SET + userId;
    }

    /**
     * note collect 数据 KEY
     */
    private static final String USER_NOTE_COLLECT_Z_SET = "user:note:collect:";
    public static String buildUserNoteCollectKey(Long userId) {
        return USER_NOTE_COLLECT_Z_SET + userId;
    }
    /**
     *  roaring note 数据 KEY
     */
    private static final String ROARING_BITMAP_NOTE_COLLECT = "roaring:bitmap:note:collect:";
    public static String buildRoaringBitmapNoteCollectKey(Long id) {
        return ROARING_BITMAP_NOTE_COLLECT + id;
    }
}
